<template>
  <div class="Header">
    <div class="Header-left">
      <span class="iconfont icon-back">&#xe601;</span>
    </div>
    <div class="Header-input"><span class="iconfont">&#xe62a;</span>输入城市/景点/游玩主题</div>
    <router-link to="/city">
      <div class="Header-right">{{this.city}}<span class="iconfont">&#xe60c;</span></div>
    </router-link>

  </div>
</template>
<script>
   import { mapState,mapGetters } from 'vuex'
  export default {
    name: 'HomeHeader',
    computed:{
      ...mapState(['city']),
      ...mapGetters(['doubleCity'])
    }
  }
</script>
<style lang="stylus" rel="stylesheet/stylus" scoped>
  @import "../../../../static/css/varibles.styl"
  .Header
    width: 100%
    height: $headerHeight
    line-height: $headerHeight
    background: $bgColr
    color: #fff
    display: flex
    .Header-left
      width:0.64rem
      float:left
      text-algin:center
      .icon-back
        padding-left:0.1rem
    .Header-input
      flex : 1
      margin-top: 0.12rem
      marign-left: 0.2rem
      border-radius: 0.1rem
      height :0.64rem
      background: #fff
      line-height: 0.64rem
      padding-left: 0.1rem
      color: #ccc
      font-size: .24rem
      & span
        padding-right:0.1rem
    .Header-right
      min-width:1.04rem
      padding:0 0.1rem
      color:#fff
      text-align:center
</style>
